from common import *
from copy import copy

def CreatePatternFromIds(stateIds):
    pattern = Pattern()
    for id in stateIds:
        pattern.states.append(copy(States[id]))
    return pattern
    
class Pattern:
    def __init__(self):
        self.states = []
        self.value = 0

    def length(self):
        return len(self.states)

    def __repr__(self):
        return str(self.states)